package com.ebook.entity;

import lombok.Data;

@Data
public class User {
    private Integer userId;
    private String userName;
    private String password;
    private Boolean isVip;
    private String acquireVipWay;
    private String iconUrl;
    private String nickName;

    public User() {
    }

    public User(Integer userId, String userName, String password, Boolean isVip, String acquireVipWay, String iconUrl, String nickName) {
        this.userId = userId;
        this.userName = userName;
        this.password = password;
        this.isVip = isVip;
        this.acquireVipWay = acquireVipWay;
        this.iconUrl = iconUrl;
        this.nickName = nickName;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Boolean getVip() {
        return isVip;
    }

    public void setVip(Boolean vip) {
        isVip = vip;
    }

    public String getAcquireVipWay() {
        return acquireVipWay;
    }

    public void setAcquireVipWay(String acquireVipWay) {
        this.acquireVipWay = acquireVipWay;
    }

    public String getIconUrl() {
        return iconUrl;
    }

    public void setIconUrl(String iconUrl) {
        this.iconUrl = iconUrl;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    @Override
    public String toString() {
        return "User{" +
                "userId=" + userId +
                ", userName='" + userName + '\'' +
                ", password='" + password + '\'' +
                ", isVip=" + isVip +
                ", acquireVipWay='" + acquireVipWay + '\'' +
                ", iconUrl='" + iconUrl + '\'' +
                ", nickName='" + nickName + '\'' +
                '}';
    }
}
